<?php 
    if(!empty($pay)){
        echo '
        <table id="movie-table" data-mode="reflow" class="ui-responsive">
        <thead>
    		<tr>
              <th data-priority="1">#</th><th data-priority="persist">offer</th><th data-priority="2">Point</th><th data-priority="3">Date</th>      
            </tr>
        </thead>
        <tbody>
        ';
        $i=0;
        foreach($pay as $payout){
            $i++;
            if($i%2==0){echo '<tr class="row-a">';}else echo '<tr class="row-b">';
            echo '<td>'.$i.'</td><td>'.$payout->name.'</td><td>'.$payout->point.'</td><td>'.date("h:i - d/m",$payout->created).'</td>';
            echo '</tr>';
        }
        echo '
        </tbody>
    </table>
        
        ';
    }
    
?>

